from flask import session,request,abort
from functools import wraps

def islog(fn):
    @wraps(fn)
    def validLog(*args,**kwargs):
        token = session.get("token") or None
        if token:
            return fn(*args, **kwargs)
        else:
            return abort(404)
    return validLog

if __name__ == "__main__":
    print("12")



